package com.dzqc.fly.db.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@Schema(description = "登陆表单类")
public class LoginForm {
    @NotBlank(message = "账号不能为空")
    //@Pattern(regexp = "^[0-9]{3,16}$",message = "输入的账号格式不正确")
    @Schema(description = "账号")
    private String sno;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;
}
